#!/bin/bash

#Updates "countries" - list of country codes wiktionary supports
curl -s "https://dumps.wikimedia.org/backup-index.html" | grep -Po "\"\>.*?wiktionary" | sed -e 's/wiktionary//g' -e 's/\">//g' | sort -du > countries

#Updates "languages" - list of languages wiktionary includes
curl -s "https://en.wiktionary.org/wiki/Wiktionary:Statistics" | grep -Po '\">.*?</a></td>' | sed -e 's/\">//g' -e 's/<\/a><\/td>//g' | sort -du > languages

